package com.jcommander.model;

import javax.swing.Icon;


public class IconLabel implements Comparable<IconLabel>{
	
	private final Icon icon;
	private final String label;
	
	public IconLabel(Icon icon, String label) {
		this.icon = icon;
		this.label = label;
	}

	public Icon getIcon() {
		return icon;
	}

	public String getLabel() {
		return label;
	}

	public int compareTo(IconLabel o) {
		return this.getLabel().compareToIgnoreCase(o.getLabel());
	}
	
}
